package cn.edu.scau.cmi.wujiaxian.client;

import java.util.Scanner;

import cn.edu.scau.cmi.wujiaxian.simpleFactoryMethod.MeatFactory;
import cn.edu.scau.cmi.wujiaxian.simpleFactoryMethod.domain.Meat;

public class SimpleFactoryMethodClient {

	@SuppressWarnings("resource")
	public static void main(String[] args) {
		
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入你要的肉类：有beef和pork");
		String meatName = scanner.nextLine();
		if (!meatName.equals("beef") && !meatName.equals("pork")) {
			System.out.println("我们暂时不提供这个肉");
		}
		
		Meat meat = MeatFactory.getMeat(meatName);
		meat.cook();

	}

}
